Method and apparatus for decoding unresolved profiles produced from relief formed symbols

ABSTRACT

A method and apparatus for decoding profiles which fail to resolve narrow elements in machine-readable symbols formed as relief patterns, first begins by identifying which elements in the profile are resolved. Second, the distances between the centers of the resolved elements are determined. Third, closure boundaries are determined, and the widths of resolved elements are determined at the closure boundary. The type of resolved element is determined based on its measured width. Thereafter, a unit distance is determined for 1-wide narrow elements unresolved in the profile. Based on the unit distance and the width of two adjacent resolved elements, a matrix is constructed for determining the number of narrow elements unresolved between two resolved elements. Based on the measured center distances, the resolved element widths and the matrix, all of the unresolved narrow elements are identified in the profile and the profile is subsequently decoded.

CROSS-REFERENCE TO RELATED APPLICATION

This application is a Continuation of United States patent application Ser. No. 08/759,787, filed Dec. 3, 1996, now U.S. Pat. No. 5,198,513, issued Aug. 25, 1998.

TECHNICAL FIELD

The present invention relates to methods and apparatus for decoding signals produced from machine-readable symbols, and more particularly, to methods and apparatus for decoding unresolved signals produced from relief formed symbols.

BACKGROUND OF THE INVENTION

Bar code symbologies ("bar codes") are widely used for data collection. The first bar code symbologies developed, such as U.P.C., EAN, Code 39, Interleaved 2 of 5, and Code 93 can be referred to as "linear symbologies" because data in a given symbol is decoded along one axis or direction. Linear symbologies generally encode data characters as parallel arrangements of alternating, multiple-width strips of lower reflectivity or "bars" separated by the absences of such strips having higher reflectivity or "spaces." Each unique pattern of bars and spaces within a predetermined width defines a particular data character. A given linear symbol encodes several data characters along its length as several groups of unique bar and space patterns.

Simpler linear symbologies such as Code 39 employ two element widths. An "element" is a single bar or a single space, and in 2-width symbologies, each character in the symbology generally includes a combination of tour narrow and wide elements: a single-width bar, a single-width space, a double-width bar or a double-width space. More complex symbologies employ a greater number of widths for each element. For example, the U.P.C. symbology employs four widths, this allowing for a combination of eight elements. Nevertheless, each linear symbology is based on its "X-dimension," which is the nominal width dimension of the narrowest bars and spaces in the bar code symbology. The wider bars and spaces in that symbology are based on integer multiples of the X-dimension. For example, the largest element in the U.P.C. symbology is four times wider than the narrowest element.

Currently available bar code readers transfer light to a bar code, which is reflected back to a light sensor within the reader. The sensor produces a profile based on the light reflected from the bar code. The bar code "profile" is generally an analog signal representing the modulated light reflected from the spaces and absorbed by the bars in the bar code and thereby represents the pattern of bars and spaces in a given bar code. In a given profile, a peak generally corresponds to a space (high reflectivity), while a valley corresponds to a bar (low reflectivity, relative to a space), and the width of each peak or valley generally indicates the width of the corresponding bar or space whose reflectance produced the peak or valley. Currently available readers determine the edges in the profile, typically using an electronic thresholding or other square-wave generating circuit that converts the profile into either a high or low value. The reader then decodes the "squared-off" signal based on the transitions or edges between high and low values.

Some bar code readers employ hand-held wands which contact the surface on which the bar code is printed. Such readers often produce profiles having sharp contrast between the peaks and valleys and thus the spaces and bars represented by the profile are easily detectable by circuitry in the reader. However, wand-type readers require the wand to contact the surface on which the bar code is printed, and are thus impractical in situations where a user cannot or does not wish to physically contact the bar code. In a hand-held reader, requiring the user to manually contact each bar code is time consuming and reduces productivity. Also, the X-dimension of each symbol must be matched to resolution of the wand (typically to an optical aperture in the wand).

Non-contact bar code readers are currently available such as laser scanning and image-based readers. Laser scanning-type readers employ a scanning beam of laser light which impinges on and is reflected from a bar code. A photodetector receives the reflected light and converts it into a modulated electrical signal that comprises the profile for the bar code. Image or vision-based readers employ charge-coupled devices ("CCD"), two-dimensional semiconductor arrays, vidicons, or other suitable light receiving elements that receive an image of a bar code and, based on the light reflected therefrom, process the image to produce a profile.

Due to optical systems inherent in laser- or image-type readers, these readers haze a specified depth-of-field within which bar codes can be read. Some laser- or image-type readers employ autofocus systems to increase the depth-of-field for the reader. However, even readers with autofocus systems are limited by the depth-of-field of the autofocus system. Additionally, autofocus systems are slow and costly.

If a reader scans or images a bar code out of its depth-of-field, the resulting profile will exhibit "closure." Positive ink spread in a bar code or excessive noise in a profile can also produce closure. Additionally, scanning or imaging bar codes with narrow elements that are too small for the resolution of the scanner/reader produces closure. Closure in a bar code profile is evidenced by some recognizable peaks and valleys, but also ripples in the middle of the profile. Closure in a bar code profile generally indicates that the wide elements in the profile are resolved, but that the narrow elements are unresolved. With respect to readers, a space or bar is "resolved" if the reader is able to identify a peak or valley in the profile that corresponds to the given space or bar. Some profiles may represent narrow elements by small peaks, valleys or ripples that are visually recognizable, but which are essentially undetectable by current readers.

Currently available readers are unable to decode profiles having closure. These readers employ electronic circuits such as thresholding circuits, or other methods, to find the edges of bar code elements represented in a profile. To decode each element in the bar code, these electronic circuits locate an edge of an element as a point where the reflectance in the profile reaches a fixed distance from a peak or valley. Currently available readers cannot decode profiles where the narrow elements are out of focus or lost in the profile (ie., "unresolved" profile or profile closure) because the narrow elements fail to produce any significant peaks or valleys and thus the electronic circuitry is unable to locate any edges in the profile corresponding to these elements. Since current electronic circuits cannot locate the narrow elements in a profile (when closure occurs), the circuits cannot decode the bar code.

Due to the shortcomings of such circuits, a user of a hand-held non-contact reader without autofocus must adjust the distance at which the user holds the reader from the bar code until the bar code is within the depth-of-field (i.e., in-focus) for the reader. Once in-focus, the circuitry can decode the bar code, but only if the symbol's size (X-dimension) is within the resolution of the reader. If a user is attempting to read bar codes at varying distances, the user must constantly move the reader to place a given bar code within focus for the reader so as to read that bar code. Consequently, while non-contact readers eliminate the need to contact the surface on which the bar codes is printed, reading each bar code is still time consuming since the user must move the reader to the particular in-focus position for the reader. If the reader is mounted in a fixed location (and lacks autofocus capabilities), and the bar codes pass by the reader at different distances, for example, when the reader is mounted above a conveyor on which boxes of varying heights are carried for reading bar codes atop the boxes, only those bar codes within the reader's fixed depth-of-field will be decoded.

SUMMARY OF THE INVENTION

Many bar code symbols are printed on labels which are affixed to objects, boxes, etc. Alternatively, bar codes can be set in relief or formed within the surface of an object. This typically can be done by stamping, engraving, etching, milling, molding, or by other known methods. The symbols can be either raised from the surface or depressed within the surface. Such relief formed symbols can be more durable, less expensive, and provide other benefits of typical bar code labels. However, such relief formed symbols cannot be read using currently available non-contact scanning techniques, because the contrast between raised and recessed portions of the symbol is generally low. In other words, if a laser scanner scans a relief formed symbol, both the high and low regions of the symbol reflect the scanning beam substantially equally.

One known method and related reading device, described in U.S. Pat. No. 5,393,967, permits effective reading of relief formed symbols. The '967 patent describes a system that produces signals in an X-Y plane, rather than in a time-reflectance space from bar code symbols. In other words, the '967 patent produces signals or "profiles" from the spatial domain, as opposed to the typical frequency domain. The relief symbol scanning device under the '967 patent requires precise positioning of a laser scanner and optical receiver to operate. A more accurate, and thus expensive, laser optic system is required to read high density symbols.

Moreover, such a method and reader suffers from the above-mentioned problems. Bar code readers, as well as the reader of the above patent, cannot read or decode profiles which exhibit closure due to, e.g., symbols being read outside of a reader's depth-of-field, noise generated from electronics or printing defects, or when a given reader attempts to read symbols having an X-dimension smaller than that capable of being read by the reader. Under the present invention, the method and apparatus for decoding unresolved profiles, produced from relief formed symbols, first begins by identifying which elements in the profile are resolved. Closure boundaries are determined, and the widths of resolved elements are determined at selected boundaries. The size of each resolved element is determined based on its measured width. The distances between the centers of the resolved elements are determined. Thereafter, the unit distance, or X-dimension, is determined for 1-wide narrow elements unresolved in the profile. Based on the X-dimension and known center distances, a matrix or table is developed for determining the number of narrow elements unresolved between two resolved elements. Based on the measured center distances, the resolved element widths and the matrix, all of the elements are identified in the profile and the profile is subsequently decoded.

As represented in the claims below, the present invention, in a broad sense, embodies a method of decoding a machine-readable symbol representing encoded information and formed as a relief pattern, the symbol including a plurality of spaced two-dimensional geometric shapes, the shapes and spaces between the shapes having at least first, second and third widths in at least one direction. The second and third widths are greater than the first width and the shapes differ in height from the spaces. The method includes the steps of: (i) receiving light reflected from the symbol and producing an output signal therefrom that represents the shapes and spaces comprising the symbol; (ii) receiving the output signal and producing a wide feature signal that resolves at least some of the shapes and spaces having the second and third widths, but which fails to resolve at least some of the shapes and spaces having a first width; (iii) receiving the wide feature signal and determining which of the shapes and spaces are resolved by identifying a plurality of portions in the wide feature signal that correspond to the resolved shapes and spaces; (iv) generating an unresolved element matrix in response to the wide feature signal; and (v) determining the information encoded in this symbol based on the matrix.

Similarly, the present invention embodies an apparatus for decoding the machine-readable symbol. The apparatus includes a sensor that receives light that is reflected from the machine-readable symbol and produces an output signal therefrom that represents the heights of the shapes and spaces comprising the symbol. A receiver receives the output signal and produces a large shape signal that indicates at least some of the shapes and spaces having the second or third widths, but fails to produce a signal indicative of at least some of the shapes and spaces having the first width. A processor processes the large shape signal and produces a signal indicative of the information included in the symbol. The processor: (i) determines which of the shapes and spaces are resolved by identifying a plurality of portions in the large shape signal that each correspond to one of the resolved shapes and spaces, (ii) generates an unresolved element matrix in response to the large shape signal, and (iii) produces a signal indicative of the information encoded in the symbol based on the unresolved element matrix.

Other features and associated advantages of the present invention will become apparent from studying the following detailed description, together with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 shows a block diagram of a data collection symbology reader of the present invention.

FIG. 2 is an enlarged fragmentary perspective view of a surface bearing a relief formed symbol, which has been exaggerated for clarity to illustrate paralactic displacements of a line of illumination.

FIG. 3 is an isometric, schematic diagram of a portion of a relief formed symbol in a portion of the reader of FIG. 1 to illustrate a mapping of an image of the line of illumination on the surface shown in FIG. 5 onto a two-dimensional photodetector array in the reader of FIG. 1.

FIG. 4A shows an enlarged U.P.C.-A symbol.

FIG. 4B shows an example of an unresolved profile of the symbol of FIG. 4A produced by the reader of FIG. 1 having an aperture of approximately 2.5 times the X-dimension for the symbol.

FIGS. 5A and 5B are flowcharts which together show a method of decoding unresolved profiles produced by the reader of FIG. 1.

FIG. 6 is a plot showing the number of times a resolved profile of the symbol of FIG. 4A exceeds a relative height value of between 0 and 100%.

FIG. 7 is a plot showing the number of times the profile of FIG. 4B exceeds a relative height value of between 0 and 100%.

FIG. 8 is a table showing an example of the intermediate values determined during the steps shown in the flowchart of FIGS. 5A and SB for the method of decoding unresolved profiles.

FIG. 9 shows a block diagram of an alternative data collection symbology reader under the present invention.

DETAILED DESCRIPTION OF THE INVENTION

A machine vision system, and in particular, an apparatus and method for decoding data collection symbols or other machine-readable images, is described in detail herein. In the following description, numerous specific details are set forth such as specific linear symbols, profiles produced therefrom, order and method of identifying elements in such symbols, etc., in order to provide a thorough understanding of the present invention. One skilled in the relevant art, however, will readily recognize from the detailed description provided herein that the present invention can be practiced without the specific details, or with other symbols, profiles, etc. In other instances, well-known structures and methods are not shown in detail in order to avoid obscuring the present invention.

As shown in FIG. 1, a data collection symbology reader 50 of the present invention includes a light source 52 that illuminates a data collection or bar code symbol 53. As used herein, a "data collection symbol" refers to a symbol from any linear, stacked, area and other machine-readable symbology, and preferably those symbols formed as relief patterns, as discussed below. A stacked symbology, as used herein, refers to any symbology, such as PDF417, that generally employs several adjacent rows of symbols, each row having several characters defined by groups of multiple-width bars and spaces. An area symbology, as used herein, refers to any symbology, such as Data Matrix or Code One, that employs a matrix of data cells, rather than one or more rows of bars and spaces.

A sensor 54 in the reader 50 receives the light reflected from the bar code 53 and converts the received light into an electrical signal. For example, the light source 52 can be a laser while the sensor 54, in turn, can be a photodetector. Alternatively, the light source 52 can be an LED, flash bulb, infrared light source, or other light-emitting element, while the sensor 54 can be a one- or two-dimensional CCD, semiconductor array, vidicon, or other area imager capable of converting received light into electrical signals.

A receiver or converter 56 receives the electrical signal from the sensor 54 and converts it into a signal to be processed by a programmed computer or processor 60. Typically, the sensor 54 produces an analog signal that represents the modulated light reflected from the elements in the bar code 53. Importantly, if the processor 60 is a digital computer, then the converter 56 converts the profile from an analog signal produced by the sensor 54 to a multi-level digital signal that numerically represents the various amplitudes of the analog signal. The converter 56 and/or processor 60 are coupled to memory 57 for storing the profile in digital form.

The reader 50 is preferably constructed to read and decode data collection symbols formed as relief patterns on surfaces. A relief formed symbol has relatively raised and recessed portions forming the bars and spaces or other elements of the symbol. In other words, the information of the symbol is encoded in the spacial domain. The light source 52 of the reader 50 preferably projects a line of light onto the relief formed symbol 53 at a first angle to a normal of the surface on which the symbol is formed. The sensor 54 views the projected line of light at a second angle to the normal of the surface and produces a signal that is representative of an image of the reflection thereon. The image incorporates apparent displacements of the line of light that occurs at transitions between raised and recessed portions of the symbol 53, as discussed below.

Referring to FIG. 2, a line of illumination 240 has a segment 218 that crosses a relatively raised zone 228 of the symbol 53, and substantially vertical segment 241, representing a transition between the raised portion 228 and a relatively recessed portion 229. The line 240 continues horizontally across the recessed portion 229 as a segment 219. An angularly displaced receiver, such as the optical receiver 54 (FIG. 1), views the symbol 53 along a line 242. Such a receiver perceives the segment 218, and a segment 219' as colinear, because an angular displacement α of the segments from the receiver's optical axis 245 is identical. The (dotted) line 219' is not part of the line of illumination. The receiver perceives the segment 219, the actual line of illumination, as displaced by a distance 220 from the segment 218. The degree of angular displacement β of the segment 219 and the angular displacement α of the segment 218 determine a displacement or difference between the segments. This angular difference is affected by the difference between the relief pattern and the receiver and a height dimension 227 that represents the relative difference in elevation of the portions 228 and 229.

Referring to FIG. 3, the sensor 54 is shown as having an imaging lens 221 and a two-dimensional array of photodetectors 222. The imaging lens 221 collects light from the illuminated portions of a surface of the symbol 53, and focuses the light to form an image on the two-dimensional array of photodetectors 222. The paralactic displacement 220 (FIG. 2) is translated by the imaging lens 221 into a displacement in a direction of an arrow 223 on the two-dimensional array of photodetectors 222. This image containing the displacement is translated by the two-dimensional array of photodetectors 222 into an electrical representation of the image or profile, which is provided to the converter 56, and therefrom to the processor 60. Further details regarding the reading of spacially-formed relief symbols are found in U.S. Pat. No. 5,393,967, incorporated by reference herein.

The sensor 54 typically produces a signal, analogous to a reflectance profile, such as that shown in FIG. 4B, depending upon the modulated light received from the symbol 53 and the size of an aperture 61 preceding the light detector in the sensor. The term "profile,'8 as generally used herein, refers to an analog signal corresponding to a spatial representation of bars and spaces in a relief formed symbol. The profile of FIG. 4B slopes downwardly, left to right, because of the angular displacement of the sensor 54 with respect to the normal of the surface on which the symbol 53 is formed. The profile of FIG. 4B does not represent differences in reflectance between the elements in the symbol 53, but instead represent the spacial differences between the elements in the symbol. The vertical and horizontal scales in such profiles is not known absolutely, but rather is in relative units, as distance along X- and Y-axis of the field of view of the reader 50. When decoding a profile, it is not necessary to know the distance in measurement units, but rather the relative widths or distances between elements represented by peaks or valleys in the profile.

In most readers, the aperture 61 is smaller than the minimum size of an element (i.e., the X-dimension) in a data collection symbol to be read by the reader so as to produce a profile that adequately resolves all elements in the symbol. FIG. 4B, however, shows an unresolved profile or closure profile produced by an aperture 61 that is greater than 2 times the X-dimension for the symbol 53 (i.e., greater than 2X). Most bar code readers employ a circular aperture 61 whose diameter is equal to approximately 0.8X. The symbol 53 represents an enlarged copy of a U.P.C.-A symbol printed by a marginal quality impact dot matrix printer, and thus has considerable positive ink spread. When formed as a relief symbol, the symbol 53 could represent a relief formed symbol having its bars (grooves) formed wider than its spaces, for like-sized elements. Such a situation could occur if the symbol 53 were formed by a masking process where the bars were etched using an etching solution whereby the bars were etched wider than typically desired (and consequently narrowing the spaces). Similarly, abrasion or damage to the surface of the symbol 53 can cause the protruding spaces to be flattened or mushroom out, and thereby be wider than desired, relative to the bars. Thus, in addition to large apertures 61, marginal symbol forming or damage can further promote closure in profiles produced from such poorly formed or damaged relief symbols.

As identified in FIG. 4A, the symbol 53 includes a 1-wide bar 62, a 2-wide bar 64, a 3-wide bar 66 and a 4-wide bar 68, and a 1-wide space 69, a 2-wide space 70 and a 3-wide space 71. The symbol 53 lacks any 4-wide spaces. As a relieved form symbol, the bars of the symbol 53 are represented as grooves formed in a surface, with the spaces extending above the grooves. Alternatively, the spaces could form the grooves, with the bars extending upward from the grooves and the surrounding surface on which the symbol is formed. The 1-wide bars and spaces 62 and 69 are represented by narrow grooves and protrusions, respectively (or vice versa). The 2-, 3- and 4-wide bars 64, 66 and 68 in FIG. 4A produce valleys 74, 76 and 78 shown in FIG. 4B, respectively. Conversely, the 2- and 3-wide spaces 70 and 71 produce peaks 80 and 81, respectively. The 1-wide bar 62, however, produces a small valley 72, while the 1-wide space 69 fails to produce any recognizable peak, and thus the 1-wide elements are unresolved in the profile of FIG. 4B. Overall, the profile of FIG. 4B shows the first twenty resolved (wide) elements in the symbol 53.

In general, the unresolved 1-wide or "narrow" elements in a closure profile are represented, if at all, by small peaks, valleys, inflection points or other ripples in the middle of the profile. Conversely, the resolved 2-, 3- and 4-wide or "wide" elements are represented by high peaks or low valleys, extending near the top or bottom of the profile. As a result, if two wide elements, such as a wide bar and a wide space, are separated by two narrow elements (i.e., a 1-wide space or a 1-wide bar), the resulting closure profile shows a high peak and a low valley that appear to be adjacent to each other in the profile. The narrow elements fail to produce any significant peak or valley because the reader 50 fails to have adequate resolution for such narrow elements. The narrow elements produce an insignificant ripple at the middle of the profile. If a wide bar is separated from another wide bar by a single narrow element (i.e., a 1-wide space), the resulting closure profile shows two high peaks that appear to be adjacent to each other in the profile. The narrow element fails to produce any significant peak.

The symbol 53, a U.P.C.-A symbol, includes 59 elements, which are represented by 60 sharp or recognizable transitions in a typical resolved profile that define the edges of the elements. Importantly, all of the valleys in such a profile are distinct from all of the peaks, and thus standard decoding circuitry can locate the transitions from valleys to peaks in the profile. By locating the transitions from valleys to peaks, standard decoding circuitry can identify the edges of each of the elements in the profile and thereby decode the profile.

As the size of the aperture 61 in the reader 50 increases from, e.g., 1.0X to 3.0X, and the symbol 53 becomes more out-of-focus, the 1-wide bar 62 and the 1-wide space 69 produce respective valleys 72 and peaks of decreasing amplitude. The wide elements, e.g., the 2-, 3- and 4-wide bars 64, 66 and 68, and the 2- and 3-wide spaces 70 and 71, are still discernible (e.g., valleys 74, 76 and 78, and peaks 80 and 81 in the profile of FIG. 9, all respectively). Importantly, the positions of all valleys and peaks for the 2-, 3- and 4-wide bars and spaces remain constant as the aperture 61 in the sensor 54 increases.

As is known, when the size of an aperture 61 increases, the depth-of-field decreases, so that if the size of an aperture doubles, the depth-of-field is reduced in half The profile shown in FIG. 4B can also be used to demonstrate the profile that would be produced by the sensor 54 having a fixed aperture 61 of 0.8X, but where the profile is generated by the reader 50, at an out-of-focus distance. Additionally, the profile shown in FIG. 4B may also be used to demonstrate an out-of-focus laser scanner or wand, or a CCD-type reader having too few pixels in its CCD array to adequately resolve a given image. Furthermore, the profile shown in FIG. 4B may also be used to demonstrate a laser scanner, wand, or image-type reader that attempts to read a symbol beyond the resolution of the device (e.g., where the aperture 61 is greater than the X-dimension of the symbol being read).

Referring now to FIGS. 5A and 5B, a routine 100 for decoding the unresolved profile shown in FIG. 4B utilizing the present invention begins in step 102 (FIG. 5A) by scanning or imaging the symbol 53 to produce a profile. The routine 100, and all routines and methods described herein, are generally performed by the processor 60 and are permanently stored within the memory 57. In step 102, the processor 60 signals the light source 52 to provide light to the symbol 53. The sensor 54 receives the modulated light reflected from the symbol 53 and produces an analog signal profile. In step 104. The converter 56 converts the analog signal to a multi-level digital signal profile which is then input to the processor 60. In step 106, the processor 60 determines if the profile is in-focus, i.e., all elements in the symbol 53 are resolved, and if so, in step 108, the processor decodes the profile.

If the profile exhibits closure, i.e., some elements in the symbol 53 are unresolved, then in step 109, the processor 60 analyzes the profile to identify the higher peaks and lower valleys in the profile by determining a closure boundary. The unresolved 1-wide elements in the symbol 53 are represented, if at all, by ripples in the middle of the profile of FIG. 4B, all within a closure region 110 of FIG. 4B. Peaks or valley outside of the closure region 110 correspond to resolved elements in the symbol 53, while any information in the profile within the closure region 110 is unreliable (i.e., undetectable or indistinguishable by the reader 50 from noise, symbol forming errors or damage). Under the routine 100, the processor 60 must begin to decode a closure profile by determining which elements are resolved in the profile. Therefore, in step 109, the processor 60 examines the profile of FIG. 4B to determine how often the profile reaches or crosses each of a series of spacial thresholds.

In step 109, the processor 60 repeatedly examines the profile by first determining how often the profile crosses an initial preselected percent relative spacial or height threshold of 0%. The 0% threshold can be a lowest (or highest) valley (or peak) in the profile. Since the profile extends at an angle (downwardly, in FIG. 4B), the threshold similarly extends angularly, and parallel with, the profile. The processor 60 then increases the percent height threshold by an appropriate percent such as 1% and determines how often the profile crosses this threshold. Thereafter, the processor 60 again increases the threshold by 1% to 2%, determines how often the profile crosses the new threshold, and continues in this manner up to 100% (e.g., the highest [or lowest] peak [or valley]). The profile is retained in the memory 57 as a one- or two-dimensional pixel image, and therefore, it may be analyzed repeatedly. Methods for locating a profile, such as the profile of FIG. 4B, in a two-dimensional pixel memory array are well known.

As noted above, U.P.C.-A symbols always include a total of 59 elements which produce 60 transitions in a fully resolved profile. For example, if under step 109, the processor 60 analyzes a fully-resolved profile, the processor determines that the profile crosses thresholds a total of 60 times. Consequently, such a profile has a "crossing count" of 60 between thresholds of about 10% and 90%, represented by the single flat region in the plot of FIG. 6 that illustrates crossing count versus percent height. A fully-resolved profile produces the flat crossing count plot between about 10% and 90% relative height because all of the valleys in the profile have approximately the same amplitude, and thus have the same height, while all of the peaks similarly have approximately the same height.

The profile of FIG. 4B, however, fails to resolve the 1-wide elements in the symbol 53. Consequently, as shown in FIG. 7, the profile of FIG. 4B more erratically crosses various relative height thresholds. The plot in FIG. 7 shows two flat areas where the crossing count remains constant for several continuous thresholds: between approximately 20% and 30% relative height and between approximately 42% and 60% height. The flat area between the 42% and 60% thresholds, or "higher region," in the plot of FIG. 7 represents a crossing count of about 30, corresponding to resolved spaces in the profile. Similarly, the flat area between 20% and 30% thresholds, or "lower region," represents a crossing count of about 26, corresponding to resolved bars in the profile.

The processor 60, in step 109, analyzes the profile of FIG. 4B and effectively creates, and stores in the memory 57, data representative of a crossing count plot as shown in FIG. 7. Once created, the processor 60 examines the crossing count plot to locate the upper and lower regions in the plot so as to establish upper and lower closure thresholds or boundaries. The processor 60 establishes an upper closure boundary as a threshold within the upper region, which for the profile of FIG. 4B, is a threshold of between 42% and 60% relative height. Similarly, the processor 60 establishes a lower closure boundary as a threshold within the lower region, which for the profile of FIG. 4B, is a threshold of between 20% and 30% relative height.

As explained below, the processor 60 determines which elements in the symbol 53 are resolved by identifying those peaks which extend above the upper closure boundary to be resolved spaces and those valleys that extend below the lower closure boundary to be resolved bars. Restating, the upper and lower closure boundaries help the processor 60 determine which portions of, or data in, the profile are reliable and which portions should be ignored.

For the profile shown in FIG. 4B, the processor 60 in step 109 preferably establishes an upper closure boundary 111 and a lower closure boundary 111'. More details on establishing thresholds are found in the inventor's U.S. Pat. No. 5,486,689, entitled "Method and Apparatus for Decking Unresolved Multi-Width Bar Code Symbology Profiles," and incorporated by reference herein. Alternatively, if the symbol 53 contains only wide and narrow elements, the processor 60 can omit the steps of establishing thresholds, as is described in the inventor's U.S. Pat. No. 5,389,770 ("the '770 patent"), entitled "Method and Apparatus for Decoding Unresolved Bar Code Profiles," and incorporated by reference herein. Conversely, if the symbol 53 contains multiple wide elements, of varying widths, the processor 60 must establish or group resolved elements into respective widths. As a result, the processor 60 establishes various thresholds, as described in detail in the inventor's U.S. Pat. No. 5,514,858 ("the '858 patent"), entitled "Method and Apparatus for Decoding Unresolved Complex Multi-Width Bar Code Symbology Profiles," issued May 7, 1996, and incorporated by reference herein. Additionally, the processor 60 can perform profile enhancement methods, such as the inventor's copending U.S. patent application, Ser. No. 08/730,474, entitled "Method and Apparatus for Enhancing Resolution of Reflectance Signals Produced From Machine-Readable Symbols," filed Oct. 12, 1996. Since the spatial profiles produced under the present invention typically suffer from reduced amplitude of peaks and valleys, or reduced "dynamic range," such an enhancement method can provide particularly beneficial results.

In step 112, the processor 60 extracts or filters out the reliable information from the profile by identifying the resolved 2-, 3- and 4-wide spaces and bars as the peaks and valleys in the profile that extend beyond the upper and lower closure boundaries 111 and 111', respectively. The resolved wide elements for the symbol 53 are shown as having a vertically extending line or mark extending through a peak or valley of the profile of FIG. 4B. In step 114, the processor 60 locates the centers of the resolved peaks and valleys identified in step 112, and then measures and stores the distances between the centers. FIG. 8 shows the distances, in arbitrary units, between the centers of the resolved elements from the profile of FIG. 4B. For the routine 100. The units used are pixel distances in a CCD type sensor 54, a multiple of the quantization used by the processor 60, a multiple of a rate of a clock coupled to the processor, or the units can be related to the resolution of the sensor 54.

The processor 60 locates the center of each peak and valley in the profile by first locating the two points at which a given peak or valley crosses the upper or lower closure boundary 111 and 111', respectively, and then locating a center point along that boundary which is halfway between the two points. The processor 60 determines the distances between the centers of identified peaks and valleys, or "center distances," based on the positions of the identified peaks and valleys with respect to an imaginary axis normal to the peaks and valleys. Alternatively, the processor 60 can locate the centers of each peak and valley in the profile by determining the position of the highest or lowest point for a given peak or valley, respectively. As shown in FIG. 4B, wide elements form flattened peaks and valleys. For example, the 3-wide space 71 forms the flattened peak 81. If the profile of FIG. 4B were more out-of-focus, so that no peaks were flattened, or with symbols employing only 2- or 3-wide elements, then the peaks or valleys of the wide elements could fail to plateau or flatten out. In general, since the profile can be positioned at an angle with respect to the matrix of pixels of a two-dimensional CCD or other established X- and Y-axis coordinates of the reader 50, the processor 60 can employ known equations for rotation of axes to align the profile so that it is parallel with, e.g. a rotated X-axis.

Determining the position of the highest/lowest point can be performed using known methods, such as locating the points at which the slope of the profile changes sign (e.g., from positive to negative), or when the amplitude changes from an increasing value to a decreasing value, or vice versa. With any method, the processor 60 can locate the centers of the resolved elements in the profile despite the presence of defects in the symbol 53 such as spots or voids (spurious pits or protrusions), deviations from desirable relief forming of the symbol, or other noise, and is thus immune to poor relief forming quality.

In step 115, the processor 60 measures and stores the widths of the resolved elements in the profile. The widths of the resolved spaces are measured at the upper closure boundary 111, and the widths of the resolved bars are measured at the lower closure boundary 111', both in the arbitrary units. The element widths measured in step 115 generally cannot be used to directly determine the actual widths of the elements in the symbol 53 because the profile is distorted compared to an in-focus profile. The measured element widths, however, are useful in a relative way to determine which elements are 2-, 3- and 4-wide elements. Determining which elements are 2-, 3- and 4-wide elements is helpful in decoding the profile, as explained below.

If the symbol contains multiple widths of resolved elements, e.g., 2-wide through 6-wide elements, then the processor 60 in step 115 first examines an environment surrounding each resolved element to determine an effect of resolved elements on adjacent unresolved elements. Second, the processor measures the widths of resolved elements at selected thresholds based on the adjacent elements. The selected thresholds are preferably positioned at fractional distances from the upper and lower closure boundaries 111 and 111'. Thereafter, widths of each resolved element and its type (e.g., 3-wide bar, 5-wide space) are determined as described in detail in the '858 patent.

After measuring the distances between the resolved elements and the widths of these elements in the profile, all reliable data has been extracted from the profile. Therefore, the processor 60 no longer needs the stored image or digital profile and the portion of memory which stored this image or profile can be used for other purposes, such as storing an image from the next symbol read by the reader 50.

In step 116 of FIG. 5B, the processor 60 determines a width, or "unit distance," in the arbitrary units, of the 1-wide elements based on the smallest center distance values measured from the profile. The smallest center distance generally corresponds to a 2-wide bar next to a 2-wide space, and is referred to herein as the "STD." The distance between the center of a valley defining the 2-wide bar and the center of the peak defining the 2-wide space will necessarily include two elements (i.e., one-half of a 2-wide bar and one-half of a 2-wide space, or 1 element+1 element=2 elements). Therefore, dividing the STD by two provides the unit distance, which is similar to the X-dimension of the symbol 53.

In the profile of FIG. 4B, the STD is 17. Consequently, dividing this STD by 2 provides a unit distance of 8.5. To obtain a more accurate unit distance, the processor 60 preferably averages the smallest center distances (having values of 17 and 18 in FIG. 4B) to produce a unit distance of 8.8. To simplify the following discussion, an STD of 18 and a unit distance of 9 are adopted; however, the routine 100 preferably does not round off to such an extent these and other measurements discussed herein.

In step 118, the processor 60 determines an estimated width of the resolved elements for 2-wide, 3-wide and 4-wide elements. Because of relief symbol forming defects or subsequent damage, the resolved spaces are often wider than the resolved bars, or vice versa. Therefore, the measured widths of the resolved bars are often unequal to the measured widths of the resolved spaces in a profile for a given element width (e.g., a measured width of a 2-wide space is often unequal to the measured width of a 2-wide bar). Additionally, since the widths of the resolved spaces are measured at the upper closure boundary 111 and the widths of the resolved bars are measured at the lower closure boundary 111', the measured widths vary depending upon where the upper and lower closure boundaries are selected with respect to the profile. As a result, the unit distance generally cannot be used to accurately determine the width of all resolved elements.

Therefore, the processor 60 in step 120 averages the measured widths of the first few smallest resolved spaces at the upper closure boundary 111 to determine an average estimated width of the 2-wide spaces in the profile. Similarly, the processor 60 in step 120 averages the measured widths of the first few smallest resolved bars at the lower closure boundary 111' to determine an average estimated width of the resolved 2-wide bars. Averaging the first four smallest measured widths for resolved spaces and bars in the profile of FIG. 4B, the processor 60 produces an estimated width for the resolved 2-wide spaces of 15.5 and for the resolved 2-wide bars of 11.

The widths of the larger resolved elements are determined by adding the unit distance to the average estimated 2-wide distance since the 2-wide distance determined separately for the smallest resolved bars and spaces includes the differences between the bars and spaces in a given symbol based on defects and so forth. Table 1, below, shows an example of the estimated widths for the 2-, 3- and 4-wide resolved elements as estimated based simply on the unit distance, and as adjusted based on an average of the first four 2-wide bars and spaces in the profile of FIG. 4B. As used generally herein, the "estimated width" corresponds to the entries under the Estimated Width of Resolved Elements from Averaged Widths column in Table 1 below.

                  TABLE 1                                                          ______________________________________                                         ESTIMATED RESOLVED ELEMENT WIDTHS                                                                       Estimated Width of                                    Resolved                                                                               Estimated Width of Resolved                                                                     Resolved Element from                                 Element Element from Unit Distance                                                                      Averaged Widths                                       ______________________________________                                         2-wide  2 × (unit distance of 9) = 18                                                             space: 15.5                                                                    bar: 11                                               3-wide  3 × (unit distance of 9) = 27                                                             space: 15.5 + 9 = 24.5                                                         bar: 11 + 9 = 20                                      4-wide  4 × (unit distance of 9) = 36                                                             space: 15.5 + 18 = 33.5                                                        bar: 11 + 18 = 29                                     ______________________________________                                    

In step 120, the processor 60 creates a table, array or "lost element matrix" that is helpful to decoding the closure profile of FIG. 4B. The lost element matrix estimates the various distances between resolved element pairs, and therefrom determines the number of 1-wide elements unresolved or "lost" between the resolved elements. The lost element matrix can be created because of the following three properties common in all fixed multi-width symbologies such as U.P.C. and Code 93, and all 2-width symbologies such as Code 39 and interleaved 2 of 5: (1) if a resolved space immediately follows a resolved bar, then zero 1-wide elements are lost therebetween; (2) if a resolved bar follows a resolved space or vice versa, then only an even number of 1-wide elements are present therebetween; and (3) if two like resolved elements (e.g., two 3-wide bars) are adjacent in a given profile, then only an odd number of 1-wide elements are present therebetween. As used generally herein, "opposite resolved elements" refers to a 2-, 3- or 4-wide (or wider) bar and a 2-, 3- or 4-wide (or wider) space next to each other in a given profile, while "adjacent resolved elements" refers to two 2-, 3- or 4-wide bars or two 2-, 3- or 4-wide bars next to each other in the profile. The terms "opposite" and "adjacent" refer to an element's "parity" or the element's location in the profile so that "adjacent elements" each have similar values while "opposite elements" each have very different values. Elements having opposite parity always have an even number of 1-wide elements lost therebetween while elements having adjacent parity always have an odd number of 1-wide elements lost therebetween.

For the U.P.C.-A symbology, the distances between the centers of resolved elements in closure profiles are based on five possible arrangements for resolved element pairs: a 2-wide element next to a 2-wide element (referred to herein as a "2-2" situation or distance), a 2-wide element next to a 3-wide element (a "2-3" situation), a 2-wide element next to a 4-wide element (a "2-4" situation), a 3-wide element next to a 4-wide element (a "3-4" situation), and a 4-wide element next to a 4-wide element (a "4-4" situation). Each element pair situation can have from zero to ten 1-wide elements lost therebetween. A 3-wide element next to a 3-wide element (a "3-3" situation) has the same center distance as the 2-4 distance (and the same number of total elements) for a given number of unresolved elements therebetween. Therefore, the 3-3" and 2-4 distances can contain the same number of 1-wide elements lost be depending upon the given distance therebetween.

Similarly, for symbologies that have 5-wide elements, a 5-wide element immediately next to a 2-wide element (a "2-5" situation) has the same center distance as the shortest 3-4 distance. An example of a template for a lost element matrix, which can be used and completed as described below for all multi-width symbologies, is shown in Table 2 below.

                  TABLE 2                                                          ______________________________________                                         LOST ELEMENT MATRIX                                                                        Estimated Distance Between Centers of                                          Resolved Element Pairs                                             Number of                                                                              Lost                            2-6                                    Lost    Element               2-4  2-5  3-5  . . .                             Elements                                                                               Parity    2-2    2-3  3-3  3-4  4-4                                    ______________________________________                                         0       (Opposite)                                                             1       (Adjacent)                                                             2       (Opposite)                                                             3       (Adjacent)                                                             .       .                                                                      .       .                                                                      .       .                                                                      ______________________________________                                    

Since the centers of resolved element pairs must be separated by zero or a discrete number of 1-wide elements, the processor 60, in step 120, can fill in the lost element matrix using the unit distance and the STD. The smallest distance between two opposite 2-wide elements is equal to the average shortest distance for the profile or STD, which corresponds to a 2-wide bar immediately next to a 2-wide space with no 1-wide elements therebetween. The next largest distance in the 2-2 situation corresponds to one 1-wide element lost therebetween. Therefore, the next entry in the 2-2 column corresponds to the STD plus the unit distance. The next largest distance in the 2-2 situation corresponds to two 1-wide lost elements or STD+(2×unit distance). For the 2-3 situation, the smallest distance between a 2-wide element immediately next to a 3-wide element corresponds to the STD plus one-half the unit distance. The next largest distance for the 2-3 situation corresponds to the STD+(1.5×the unit distance), and so forth.

Table 3 below shows the lost element matrix that includes the equations for determining the estimated center distance for resolved element pairs in U.P.C.-A symbols. Table 3 is a subset of Table 2, designed specifically for the U.P.C. symbology.

                                      TABLE 3                                      __________________________________________________________________________     U.P.C.-A LOST ELEMENT MATRIX                                                               Estimated Distance Between Centers of Resolved                            Lost Element Pairs                                                      Number of                                                                             Element                2-4                                              Lost Elements                                                                         Parity                                                                              2-2      2-3      3-3      3-4      4-4                            __________________________________________________________________________     0      (Opposite)                                                                          STD      STD +    STD + unit                                                                              STD +    STD +                                               (0.5 × unit distance)                                                             distance (1.5 × unit                                                                       (2 × unit                                                                distance)                      1      (Adjacent)                                                                          STD + unit                                                                              STD +    STD +    STD +    STD +                                      distance (1.5 × unit distance)                                                             (2 × unit distance)                                                               (2.5 × unit                                                                       (3 × unit                                                                distance)                      2      (Opposite)                                                                          STD +    STD +    STD +    STD +    STD +                                      (2 × unit distance)                                                               (2.5 × unit distance)                                                             (3 × unit distance)                                                               (3.5 × unit                                                                       (4 × unit                                                                distance)                      3      (Adjacent)                                                                          STD +    STD +    STD +    STD +    STD +                                      (3 × unit distance)                                                               (3.5 × unit distance)                                                             (4 × unit distance)                                                               (4.5 × unit                                                                       (5 × unit                                                                distance)                      .      .    .        .        .        .        .                              .      .    .        .        .        .        .                              .      .    .        .        .        .        .                              __________________________________________________________________________

Based on the equations of Table 3, the processor 60, in step 120, fills in the lost element matrix with estimated center distances between resolved elements using the unit distance of 9 and the STD of 18. Therefore, the smallest 2-2 distance corresponds to the STD or 18 as shown in the 2-2 column of Table 4. The next largest distance in the 2-2 column must include the width of one 1-wide element, and corresponds to the STD plus the unit distance or 18+9=27. The next largest distance must include the width of two 1-wide elements or 36, and so forth for all entries in the 2-2 column of Table 4.

The smallest 2-3 center distance corresponds to the STD of 18 plus one-half the unit distance or 22.5, while the next largest distance must include the width of a single 1-wide element (i.e., 22.5 plus the unit distance, or 31.5), and so forth for the 2-3 column in Table 4. The STD plus the unit distance provides the smallest distance between 3-3 and 2-4 resolved element pairs (i.e., 27). As shown below in Table 4, the processor 60 continues to fill in the lost element matrix in a similar fashion for 3-4 and 4-4 element pairs as it solves the equations in Table 3 for the calculated STD and unit distance

                  TABLE 4                                                          ______________________________________                                         EXEMPLARY U.P.C.-A LOST ELEMENT MATRIX                                                      Estimated Distance Between Centers of                             Number of Lost     Resolved Element Pairs                                      Lost      Element               2-4                                            Elements  Parity   2-2     2-3  3-3   3-4  4-4                                 ______________________________________                                         0         (Opposite)                                                                              18      22.5 27    31.5 36                                  1         (Adjacent)                                                                              27      31.5 36    40.5 45                                  2         (Opposite)                                                                              36      40.5 45    49.5 54                                  3         (Adjacent)                                                                              45      49.5 54    58.5 63                                  4         (Opposite)                                                                              54      58.5 63    67.5 72                                  5         (Adjacent)                                                                              63      67.5 72    76.5 81                                  6         (Opposite)                                                                              72      76.5 81    85.5 90                                  7         (Adjacent)                                                                              81      85.5 90    94.5 99                                  ______________________________________                                    

After filling in the lost element matrix (Table 4) in step 120, the processor 60, in step 122, compares each center distance as measured in step 114 to the entries in the matrix to find the closest estimated distance in the matrix. Based on the closest estimated distance in the matix, the processor 60 determines the number of 1-wide elements lost between two resolved wider elements from the left hand column of the matrix. Rather than simply matching a given measured center distance to all distances in the matrix, the processor 60 in step 122 first compares the measured widths of the resolved elements bordering or defining the center distance therebetween to the estimated widths in Table 1, to thereby estimate the widths of the elements defining the measured center distance. Based on the widths of resolved elements, the processor 60 selects the appropriate column in the matrix. As a check, the processor 60 in step 122 determines whether the resolved elements are opposite or adjacent to ensure that the correct row in the matrix is selected based on the parity of the resolved elements.

In step 122, the processor 60 also constructs a decode table, array or matrix, an example of which is shown in FIG. 8. The decode matrix of FIG. 8 shows, in row 124, the measured center distances between the first 20 resolved element pairs of the symbol 53 taken from the profile of FIG. 4B. Row 126, below and offset from row 124, shows the measured widths of the 20 resolved elements taken from the profile of FIG. 4B which border the measured centers distances in row 124.

Row 128 contains the size of the first 20 resolved elements for the symbol 53. Processor 60 fills in row 128 by comparing the measured widths in row 126 to the estimated widths in Table 1, as mentioned above. For example, if the processor 60 determines that a space has a measured width in row 126 of 14, the processor compares this width to Table 1 and determines that the measured width of 14 corresponds most closely to the estimated width of 15.5 for a 2-wide space. Therefore, the processor 60 fills in row 128 with a corresponding "2" below the value "14" in row 126, as visually shown in FIG. 8. While the processor 60 can compare each measured width in row 126 to Table 1 and fill in row 128 in its entirety before proceeding with any further processing of the profile, the processor 60 preferably fills in row 128 as it serially analyzes each center distance in row 124 from left to right.

In rows 126 and 128, a positive value indicates a space or peak in the profile, while a negative value indicates a bar or valley. For example, the values of "25" and "-11" in row 126 refer to the measured widths of a resolved space and bar, respectively, while the values of "3" and "-2" in row 128 refer to a 3-wide space and 2-wide bar, respectively.

The processor 60 in step 122 begins by comparing, the left-most measured center distance in row 124 to determine the number of lost elements within that distance, and then continues rightward along row 124, although the processor 60 need not analyze the measured centers distances from left to right in row 124, but for example, can start in the middle of the string of measured center distances in this row. The first center distance in row 124 is 49, which is bordered by a space to the right having a measured width of 25, as shown in row 126, and the quiet zone to the left of the symbol 53. The quiet zone is a clear space, containing no elements, that precedes or follows a symbol. The processor 60 compares the measured width of 25 to Table 1, and determines that the closest estimated width is 24.5 for a 3-wide space.

The processor 60, having first determined the widths of the two resolved elements bordering the measured center distance, then compares the measured center distance to the estimated center distances provided in Table 4, under the appropriate column. For purposes of discussion herein, the quiet zone is assumed to be at least a 2-wide space. Therefore, in this example, the 2-wide space next to a 3-wide space would correspond to the "2-3" column in Table 4, and the measured center distance of 49 corresponds closely to the estimated distance of 49.5 in the table. Based on the estimated center distance of 49.5 in Table 4, the processor 60 determines that three 1-wide elements are lost between the quiet zone and the 3-wide space. The processor 60 knows that three 1-wide elements are lost between the quiet zone and the 3-wide space, rather than a single 3-wide element or a 2-wide with a 1-wide element lost therebetween, because all of the 2-, 3- and 4-wide elements are resolved; only the 1-wide elements are lost.

As a check, the processor 60 compares the parity of the resolved elements bordering the measured center distance to the lost element parity column in Table 4. The processor 60 knows that the resolved elements bordering the measured center distance are two spaces (the 2-wide quiet zone next to a 3-wide space), and therefore that the elements are considered adjacent. The processor 60 recognizes from Table 4 that the parity for three lost elements requires adjacent resolved elements, and thus, the parity matches, confirming that three 1-wide elements are lost within the measured center distance of 49. The processor 60 therefore begins to fill in row 130, which indicates the number of unresolved 1-wide elements lost between resolved elements, with a left-handmost value of "3," beneath the measured center distance of 49 in row 124 above. The processor 60, having confirmed that the measured width of 25 corresponds to a 3-wide space, also fills in row 128 with a "3" beneath the value "25" in row 126 above.

Since the parity must match for a given entry in Table 4, the method under the present invention is considerably tolerant of errors in any estimated center distances, estimated widths, and so forth. The estimated or measured distances can be off by as much as several whole integer units in either direction before the method under the present invention produces an error. For example, comparing the measured center distance of 49, the next possible center distances in the 2-3 column in Table 4, with the appropriate parity, is 67.5 or 31.5, both much less similar to the measured distance of 49 than the estimated center distance of 49.5. In fact, under the present invention, a measured centers distance may be off by the width of a whole 1-wide element (i.e., a whole X-dimension) and still be properly decoded.

Under the preferred method, as demonstrated above, the processor 60 in step 122 establishes the width of the resolved element to the left of the current measured center distance from the analysis of the previous measured center distance, and estimates the width of the element to the right of the center distance. After determining the number of lost elements within the current measured center distance and checking the parity, the processor 60 confirms that the estimated width of the resolved element to the right of the measured center distance was correct. This confirmed element width is then added to row 128 and used in selecting the appropriate column in Table 4 for determining the number of lost 1-wide elements within the next measured center distance. If the width of the new right-hand resolved element does not correlate closely to the estimated width in Table 1, the processor 60 compares the measured center distance to all of the entries in the columns of Table 4 to find the closest estimated center distance that corresponds to the appropriate parity, as shown by way of example below.

The next center distance in row 124 is 23, which is bordered by the previous 3-wide space (in row 128) and a bar having a measured width of 11 (in row 126). The 11 wide bar, under Table 1, correlates exactly to the estimated width for a 2-wide bar. Under the 2-3 column of Table 4, the measured center distance of 23 most closely correlates to the estimated center distance of 22.5. Table 4 shows that the estimated center distance of 22.5 between 2-wide and 3-wide elements corresponds to zero lost elements within the center distance. Zero lost elements corresponds to an opposite parity and the 2- and 3-wide elements are opposite elements (a bar next to a space), therefore the parity matches. Consequently, the processor 60 confirms that the 3-wide space is contiguous with a 2-wide bar in the symbol 53 and that no 1-wide elements are lost therebetween. The processor 60 stores or enters a "-2" in row 128, beneath the measured width of 11 in row 126, and a "0" in row 130, following the 3 previously stored in this row.

For the profile of FIG. 4B, a few calculations are noteworthy. Row 124 shows a measured center distance of 18, which is between a bar having a measured width of 10 and a space having a measured width of 18 (from row 126). The bar was previously established as a 2-wide bar and entered into row 128 during analysis of the previous measured center distance. The 18 wide space, under Table 1, most closely correlates to the estimated width of 15.5 for a 2-wide space. Under the 2-2 column in Table 4, the measured center distance of 18 correlates exactly with the estimated center distance at 18, and thus zero 1-wide elements are lost therein. Zero lost elements corresponds to an opposite parity, and the 2-wide bar and the 2-wide space correspond to opposite elements, thus the parity matches.

Assume for example, however, that the processor 60 incorrectly estimated the 18 wide space to be a 3-wide space, and consequently determined that the measured center distance of 18 was between the 2-wide bar and a 3-wide space. Under column 2-3 in Table 4, the measured center distance of 18 most closely correlates to the estimated center distance having a correct parity of 22.5. The distance of 22.5 is 4.5 units from the measured distance of 18. The processor 60 recognizes that the difference of 4.5 is significant as compared to previous correlations between measured and estimated distances. Therefore, the processor 60 compares the measured center distance of 18 to all the estimated center distances in Table 4 having the correct parity. The estimated center distance of 18 in the 2-2 column correlates exactly to the measured distance of 18, representing a difference of zero units. Therefore, since the measured center distance correlates exactly with the estimated center distance, and the 2-wide bar was previously established, the space must be a 2-wide space instead of a 3-wide space. Consequently, the processor 60 enters a "2" in row 128 corresponding to the measured width of 18 and a "0" in row 130 corresponding to the measured center distance of 18.

A measured center distance in row 124 is 50, which is between a previously determined 4-wide bar and a space having a measured width of 27. The 27 wide space, under Table 1, correlates more closely to the estimated width for a 3-wide space (i.e., 24.5, for a difference of 2.5), rather than to the estimated width for a 4-wide space (i.e., 33.5, for a difference of 6.5). Therefore, the processor 60 initially selects the 3-4 column of Table 4, and the measured center distance of 50 corresponds almost exactly with the estimated center distance of 49.5, and thus two 1-wide elements are lost therein. Two lost elements corresponds to an opposite parity, and the 4-wide bar and the 3-wide space are opposite elements, and thus the parity matches. Since the parity matches and the estimated center distance differs from the measured center distance by only 0.5, the processor 60 confirms that the 27 wide space is a 3-wide space and that two 1-wide elements are lost within the measured center distance. Consequently, the processor 60 enters a "3" in row 128 and a "2" in row 130.

Ignoring several subsequent distances, the next measured center distance of interest in row 124 is 74, which is between a space having a measured width of 16 and a bar having a measured width of 21. Referring to Table 1, the space correlates most closely to the estimated width of 15.5 for a 2-wide space, while the bar correlates most closely to the estimated width of 20 for a 3-wide bar. Comparing the measured center distance of 74 to the estimated center distances in Table 4, and assuming that only the 2-wide space has been correctly identified based on the analysis of the previous measured center distance, the processor 60 determines that the closest estimated center distances having the correct parity are 72 (under the 2-2 column) and 76.5 (under the 2-3 column). Either possibility yields six lost elements. The next closest values of 72 and 76.5 in Table 4 (under the 2-4 and 3-4 columns, respectively) correspond to adjacent elements, and thus do not have the correct parity. Therefore, since the 16 wide space correlates most closely to the estimated width for a 2-wide space, and since the measured center distance of 74 most closely correlates to the estimated center distance under the 2-2 column, the processor 60 enters a "2" in row 128 corresponding to the 2-wide space. Also, the processor 60 enters a "6" in row 130 corresponding to six 1-wide elements lost within the measured center distance of 74. The large number of missing 1-wide elements in the center of the profile correspond to the center guard area common in all U.P.C.-A symbols. The center guard area includes at least five 1-wide elements: two 1-wide bars separating three 1-wide spaces.

Row 132 in FIG. 8 shows the resulting string of element widths as the processor 60 fills in the decode matrix for all resolved element widths in row 128 and all unresolved 1-wide elements in row 130. For example, row 130 shows that "3" elements are lost between the quiet zone and the first 3-wide space shown in row 128. Therefore, the processor 60 creates row 132 as a composite of rows 128 and 130, with a "3" below the same entry above in row 128, and three "1s" below the "3" entry in row 130. The positive and negative distinctions between bars and spaces is dropped because they are unnecessary for purposes of decoding any symbols (all of the lost elements have been found and the parity has been checked). Therefore, the first 2-wide bar shown in row 128 as "-2" is instead shown in row 132 as "2."In step 133 of FIG. 5B, the processor 60 converts the resulting string of element widths in row 132 into a string of elements that are parsed into characters, as shown in row 134 of FIG. 8. The first pattern in row 134, i.e., the initial three "1s," corresponds to the left guard pattern of the U.P.C.-A symbol 53 (two 1-wide bars separated by a 1-wide space). The next six characters consist of four elements each and correspond to a manufacturer's code. The following pattern contains five 1-wide elements and corresponds to the center guard pattern. Six characters of four elements each follow the center guard pattern (all not shown). The processor 60 readily decodes the elements of row 132 using known methods after they are parsed into characters as in row 134. The string of characters can be checked by consulting a standard U.P.C.-A lookup table and by verifying the check digit using known methods.

Under a first alternative embodiment, the routine 100 can be more rapidly performed to decode profiles which are in focus, while sorting out those profiles which are unresolved. This alternative embodiment, and those described hereafter, are substantially similar to the previously described embodiment, and common steps are identified by the same reference numbers. Only the differences in operation are described in detail.

The first alternative routine proceeds through steps 102 and 104 by scanning or imaging the symbol 53 to produce a profile and then converting and storing the profile. Thereafter, however, the processor 60 determines the crossings count for the profile stored in step 104. The processor 60 determines the crossings count as explained above with respect to step 109, and produces a crossings count plot similar to those shown in FIGS. 16 and 17. If the reader 50 is to read many symbols, most of which are out of focus, the first alternative embodiment may more rapidly decode closure profiles by not wasting any processing time on attempting to decode a closure profile, but instead proceeding immediately with steps necessary for decoding a closure profile.

Determining the crossing count, however, is not only an initial step in decoding a closure profile, but may also be used to determine if a profile is in-focus (i.e., fully resolved). Therefore, the processor 60 examines the crossings count results and if the processor determines that the profile has a crossings count of 60 between about established threshold, as shown in FIG. 6, the processor determines that the profile is in-focus and the processor proceeds to decode the profile in step 108. Otherwise, the processor 60, establishes the upper and lower closure boundaries 111 and 111', and identifies resolved wide elements, as explained above with respect to steps 109 and 112, respectively.

While the processor 60 can determine the upper and lower closure boundaries 111 and 111' based on the crossing count plot and the peaks and valleys, the processor can also establish the boundaries under various alternative methods. For example, the processor 60 can examine the profile itself to establish the upper and lower closure boundaries 111 and 111'. As explained above, the peaks in the profile of FIG. 4B, if resolved, are flattened peaks at the top of the profile to represent spaces in the symbol 53. In the closure profile shown in FIG. 4B, however, the peaks of the 1-wide spaces are quite low in relative height to higher resolved spaces. Similarly, the peaks of the 1-wide bars are quite high in relative height to lower resolved bars. The processor 60 therefore examines the profile, locates the lowest peak and highest valley in the profile, and establishes the lower and upper closure boundaries 111' and 111 as the lowest peak and highest valley within the profile, respectively.

Other alternative methods of determining the upper and lower closure boundaries 111 and 111' include analyzing the profile to determine a mean reflectance threshold and then selecting the upper closure boundary 111 as a fixed percent reflectance increase from the mean, and the lower closure boundary 111' as a fixed decrease from the mean. Having determined the upper and lower closure boundaries 111 and 111', the processor 60 identifies resolved elements as those portions of the profile extending above or below the closure boundaries, as explained above with respect to step 112.

The processor 60 establishes the upper and lower closure boundaries 111 and 111' to determine which peaks and valleys in the profile correspond to resolved elements. Alternative methods of analyzing the profile to determine which peaks and valleys correspond to resolved elements include analyzing the slopes of the various peaks and valleys in the profile (generally relative to a diagonal line extending through a middle of the profile, or after a rotation of axes operation). For example, as the processor 60 analyzes the portion of the profile in FIG. 4B from the peak 81 rightward, the slope of the profile has a great negative slope value as the profile extends from the peak 81 to the next valley. The processor 60 therefore determines that the peak 81 is a resolved space. The processor 60 recognizes the change in slope within the closure region 110 as a portion within the profile which may contain unresolved 1-wide elements. After analyzing the chancing slopes in the profile, the processor 60, using known mathematical techniques, can identify the resolved peaks and valleys in the profile.

After identifying which elements are resolved, the processor 60, under the first alternative embodiment measures the distances between the centers of the identified resolved wide elements. Notably, the processor 60 does not measure the widths of the resolved elements, as was performed in step 115 of the routine 100. Instead, the first alternative embodiment proceeds to steps 116, 120, 122 and 133. Under the first alternative embodiment the processor 60 determines the unit distance in step 116 based on the STD. Ignoring step 118, which is performed in the routine 100, the first alternative embodiment in step 120 creates the lost element matrix based on the unit distance and the STD as described above.

In step 122, the processor 60 under the first alternative embodiment only creates rows 124, 130 and 132 in the decode matrix of FIG. 8, as the processor compares each measured center distance to all of the estimated center distances in the lost element matrix, ignoring the column headings (i.e., 2-2, 2-3, etc.). For example, considering the first measured center distance of 49 in row 124, the processor 60 compares this distance to all of the estimated distances in Table 4 and determines that the closest estimated distance is 49.5 (2-3 column) for three lost elements and 49.5 (3-4 column) for two lost elements. The processor 60 examines the profile to the left and right of the measured center distance of 49 and determines that the center distance is bordered by two spaces, i.e., adjacent elements. Therefore, three elements must be lost therein because three lost elements corresponds to an adjacent lost element parity, while two lost elements corresponds to an opposite element parity.

If a measured center distance correlates closely to two or more estimated center distances in the lost element matrix, and both estimated center distances correspond to the same parity, then the processor 60 under the first alternative embodiment selects the appropriate entry from the matrix by examining the widths of the elements bordering the measured center distance. Experimentation has shown that all resolved elements less than 1.5 times the STD correspond to resolved 2-wide elements. Therefore, if the processor 60 determines that the measured width of at least one of the bordering elements is within 1.5×STD, then the processor assumes that such an element is a 2-wide element. Knowing at least one of the widths of the elements bordering the measured center distance allows the processor 60 to identify the appropriate column in the matrix and thus identify the correct number of lost elements.

A second alternative embodiment under the present invention employs a routine that corresponds closely to the steps of the steps 102, 104, 106, 109, 112, 114, and 115, as described above with respect to FIG. 5A. Thereafter, the processor 60 identifies the start and stop characters or left and right guard patterns, for the symbol 53, and determines the type of symbol (i.e., from which symbology the symbol belongs), based on the start and stop characters for the symbol. For example, all U.P.C.-A symbols begin and end with guard patterns consisting of two 1-wide bars enclosing a 1-wide space, and have a center guard pattern consisting of five 1-wide spaces separated by two 1-wide bars. No other symbology includes such start/stop characters or guard patterns. The processor 60 identifies a profile as being generated from a U.P.C.-A symbol if the profile contains unresolved portions at the beginning, end and middle of the profile.

Other symbologies have similar unique patterns or features which the processor 60 identifies to determine the type of symbol from which a given profile was generated even when the profile results from some unresolved elements. All Code 93 symbols have a stop character that has a 4-wide bar separated from the quiet zone by two 1-wide elements. The processor 60 determines that a given unresolved profile was generated from a Code 93 symbol by identifying a large valley (the large bar) at the end of the profile next to a high peak (the quiet zone).

All PDF417 symbols have start and stop characters that each begin with the largest width bar available in that symbology, i.e., an 8-wide bar. In analyzing a given profile, the processor 60 readily identifies a PDF417 profile by locating the very large valleys at the beginning and end of the profile. If the profile contains such large valleys at the beginning and end of the profile, the processor 60 determines that the profile was generated from a PDF417 symbol.

After identifying the start/stop characters and determining the type of symbol, the processor 60, determines if the profile includes acceleration distortions. Acceleration distortions are generally produced when movement of the reading beam was accelerated across the symbol as the profile was generated. Acceleration distortions are common in profiles generated from hand-held wand readers, but such distortions are less common in laser scanning and image-based readers.

The processor 60 determines if a profile includes acceleration distortion by comparing the dimensions of the start character to the dimensions of the stop character, and/or these dimensions to the overall dimensions of the profile. For the symbol 53, the processor 60 compares the distance between the beginning of the profile to its middle, and the middle of the profile to its end. The processor 60 can locate the middle of the profile in FIG. 4B by locating the area in which many (at least five) 1-wide elements are unresolved (corresponding to the center guard pattern). If the distance from the beginning of the profile to its center differs significantly from the distance of the center of the profile to its end, the processor 60 applies a compensation factor, using conventional techniques, to compensate for the acceleration distortion.

Similar methods of determining whether a profile contains accelerations distortions are available by using the start and stop patterns from the various symbologies. For example, with PDF417 symbols, the processor 60 compares the width of the valleys in the profile produced by the 8-wide bars at the beginning and the end of the PDF417 symbol. If the two widths vary significantly, the processor 60 applies an appropriate compensation factor.

Thereafter, the processor 60 estimates the unit distance as explained above with respect to step 116. The processor 60 can also determine the unit distance under several alternative methods. For example, all U.P.C.-A symbols have a fixed width that includes a total of 95 modules. A module is the narrowest nominal width unit of measure in a bar code symbology. A module is therefore also equal to the unit distance. If the unit distance is 9 for a given U.P.C.-A symbol, then the symbol has a total width, from the left hand edge of its left guard pattern to the right hand edge of its right guard pattern, of 9 times 95 or 855.

Consequently, if the reader 50 produces a profile with very little acceleration distortion, the processor 60 determines the unit distance by simply dividing the sum of the center distances by 97. The total center distance is divided by 97, not 95, because the two additional modules correspond to an implied 2-wide space at the quiet zone following one of the left or right guard patterns. If the processor 60 determines that the profile contains acceleration distortions, however, or determines that the profile was generated from a non-fixed width symbology, then the unit distance is determined as described above with respect to step 116 (e.g., dividing the STD by two).

Using the unit distance determined, the processor 60 determines the estimated widths of the 2-, 3- and 4-wide elements, and creates the lost element matrix. Therefore, the processor 60 under the second alternative embodiment creates the decode matrix (FIG. 8), and first identifies and fills in the matrix for the smallest measured center distances in the profile, preferably beginning with the measured center distances in the profile that are about two times the unit distance. Therefore, for a unit distance of 9, the processor 60 identifies the measured center distances of approximately 18 in row 124 of the decode matrix. Moving from left to right in row 124, the processor 60 under the second alternative embodiment examines the center distances of 18, 18, 17, 18, and so forth as the processor determines the sizes of the resolved elements bordering a measured center distance, determines the number of lost 1-wide elements therebetween, and enters these values in rows 128 and 130, respectively, as described above.

Thereafter, the processor 60 averages the estimated widths of the like resolved elements analyzed to update the estimated widths for like 2-, 3- and 4-wide elements in Table 1. For example, the first measured center distance of 18 is between a space having a measured width of 15 and a bar having a measured width of 12, while the next measured center distance of 18 is between the bar having a measured width of 12 and a space having a measured width of 14. Averaging the measured widths of 15 and 14 for just these two spaces, the processor 60 computes an estimated width for a 2-wide space of 14.5. The processor 60 continues to average all of the previously analyzed 2-wide spaces together, averages all 3-wide spaces together, 4-wide spaces together, and likewise for all similar 2-, 3- and 4-wide bars. The processor 60 updates Table 1 to indicate more accurate estimated widths for the resolved elements in the profile. For example, considering just the two 2-wide spaces averaged above, the processor 60 updates Table 1 to change the estimated width of a 2-wide space from 15.5 to 14.5.

The processor 60 can also average the examined center distances examined to compute a new unit distance, and updates Table 4 if the estimated center distances differ from those previously set forth in Table 4. For example, the first two smallest center distances in row 124 are 18 and 18. Averagingy these measured center distances and dividing the result by 2 produces a unit distance of 9. Therefore, the processor 60 does not update the estimated center distances in Table 4 (since these distances previously were produced from the same unit distance of 9).

The processor 60 determines if the resulting string of element widths in row 132 can be parsed into characters, as in row 34, and the symbol 53 decoded using known techniques. If the processor 60 has not identified all lost elements in the profile and thus cannot decode the symbol 53, the processor again identifies and fills in the decode matrix for measured center distances equal to approximately the previously selected measured distance plus the unit distance. For this example, the processor 60 identifies all measured center distances equal to approximately three times the unit distance (i.e., 27), and identifies all lost 1-wide elements within such measured center distances, between the measured widths of resolved elements. The processor 60 averages the measured widths of the like resolved elements just previously analyzed with the measured widths previously averaged when the measured centers distances of approximately 18 were analyzed. If any of the resulting averages of all like resolved elements that have been analyzed by the processor 60 differ from the estimated widths in Table 1, the processor updates the entries in Table 1 as described above. The processor 60 then attempts to decode the profile from symbol 53.

Such iterative calculation and averaging under the second alternative embodiment may provide a more accurate representation of the estimated center distances, unit distance, and estimated element widths, and thus provides a more accurate decoding method for a closure profile. Importantly, any error that the processor 60 initially computes for the unit distance, or other estimated widths/distances, is not carried forward and exaggerated as Tables 1 and 4 are created and filled in for larger width elements or center distances.

Those skilled in the art will recognize that the above-described invention provides a method of decoding unresolved profiles produced from relief formed machine-readable symbols. Although specific embodiments of, and examples for, the present invention have been described for purposes of illustration, various equivalent modifications can be made without departing from the spirit and scope of the invention. For example, the number of 1-wide elements lost within the center of a U.P.C.-A symbol, which includes a center guard pattern, can be difficult to determine, and thus, the present invention can ignore this center region and decode the remaining portions of the symbol. Thereafter, the processor 60 then determines the number of lost elements within the center portion of the profile using the above-described method. Alternatively, in profiles lacking acceleration distortions, to determine the number of narrow elements lost within the center of the profile, the processor 60 can identify all other resolved elements by adding the total number of identified 1-wide elements that were lost, and then subtracting this number from 95.

Rather than simply filling in the exemplary lost element matrix of Table 4 in a serial fashion, the processor 60 can selectively fill in Table 4 based on known distances in the symbol being read. For example, most symbologies include known start and stop patterns. Therefore, the processor 60 can fill in the distances in Table 4 based on the known start and stop patterns in a symbol. Further details on this method are found in the inventor's '858 patent.

If the symbol being read by the reader 50 is a symbol from one of the two element width symbologies such as Code 39, the processor 60 can omit the steps of establishing a threshold to determine which elements are resolved. Further details on such a simplified method are found in the inventor's '770 patent.

While the present invention has been described above with respect to a method performed by the processor 60, the routines may be implemented using appropriate circuitry. As shown in FIG. 9, a reader 400 includes the light source 52, sensor 54 and receiver 56 as described above. A detection circuit 410 receives the profile produced by the receiver 56, and detects which portions of the profile correspond to resolved wide elements. As described above for steps 109 and 112, the detection circuit 410 establishes upper and lower closure boundaries as described above, analyzes the profile to determine which portions of the profile extend above or below the boundaries, and produces a resolved element signal.

A measuring circuit 412 receives the resolved element signal and measures the center distances between the elements (as in step 114). The measuring circuit 412 also measures the width of resolved elements at the closure boundaries and determines whether a given measured element width corresponds to a 2-, 3-, or 4-wide or wider element (steps 115 and 118). A slope detection circuit 414 can be used in addition to, or in lieu of, the detection circuit 410 to determine which elements are resolved and determine whether no 1-wide elements are lost (as described above in step 212). Additionally, the circuit 414 may operate with, or in lieu of, the detection circuit 410 to establish the upper and lower closure boundaries (step 109).

A decoding circuit 416 essentially performs steps 116, 120 and 122 as described above with respect to the lost element matrix and determines the number and location of 1-width elements lost within the profile. The decoding circuit 416 may thereby decode the signal (step 133) after having determined the location and number of lost 1-wide elements within the profile. The decoding circuit 416 can be a microprocessor and can determine whether a measured element is a 2-, 3- or 4-wide element (instead of the measuring circuit 412).

Additionally, while the routines are described as determining the number of lost elements in a profile based the center distances and the widths of all resolved elements at the closure boundary, those skilled in the art can modify the present invention based on the detailed description provided herein to allow the present invention to determine the number of lost 1-wide elements based on the measured center distances and the estimated widths of only the 2-wide elements. Furthermore, the lost element decode matrices are shown and described above as having a certain depicted form (i.e., Tables 2 through 4 and FIG. 15). The present invention need not construct such matrices per se, as shown above, but instead simply performs the necessary routines and calculations described herein in order to decode unresolved profiles such as counting a number of loops in an iterative process to determine the number of lost elements.

The teachings provided herein of the present invention can be applied to other machine vision systems, not necessarily the exemplary data collection symbology reader described above. The present invention can also be modified, if necessary, to employ the systems, methods and concepts of the inventor's U.S. patents or applications cited above. Furthermore, while the present invention produces a profile using optical apparatus, tactile or other apparatus could be employed to produce an unresolved profile that is decoded under the present invention. Moreover, while certain operations under the present invention have been described as occurring generally in a serial fashion, those skilled in the relevant art will recognize that it is entirely within the scope of the invention to conduct some operations more or less simultaneously, or even in alternative order, from that described herein.

These and other changes can be made to the invention in light of the above detailed description. In general, in the following claims, the terms used should not be construed to limit the invention to the specific embodiments disclosed in the specification and the claims, but should be construed to include all machine vision and tactile systems that operate in accordance with the claims to provide a method for accurately reading unresolved signals produced from relief patterns. Accordingly, the present invention is not limited by the disclosure, but instead its scope is to be determined entirely by reference to the following claims. 

What is claimed is:
 1. A method of decoding a machine-readable symbol representing encoded information and formed as a relief pattern, the symbol including a plurality of relatively spaced two-dimensional geometric shapes, the shapes or spaces between the shapes having at least first and second widths in at least one dimension, the second width being greater than the first width, the shapes differing in height from the spaces, the method comprising:receiving light reflected from the symbol and producing an output signal therefrom that represents the heights of the shapes and spaces comprising the symbol; receiving the output signal and producing a feature signal that resolves at least some of the shapes or spaces having the second width, as peaks or valleys in the signal; identifying a center of the peaks and valleys in the feature signal; and determining the information encoded in the symbol as the relief pattern based on the identified centers of the peaks and valleys in the feature signal.
 2. The method of claim 1 wherein receiving the feature signal includes defining at least one threshold and identifying the peaks or valleys in the feature signal that extend beyond the threshold as the resolved shapes and spaces.
 3. The method of claim 1 wherein receiving the feature signal includes:determining a slope for the peaks and valleys in the feature signal; and determining which of the shapes and spaces are resolved based on the determined slopes.
 4. The method of claim 1, further comprising measuring a distance with respect to each of the peaks and valleys in the feature signal.
 5. The method of claim 1 wherein identifying a center includes:measuring distances between the centers of the peaks and valleys.
 6. The method of claim 1, further comprising determining a width of the shapes and spaces having the first width based on the feature signal.
 7. The method of claim 1 wherein the shapes and spaces of the machine-readable symbol have at least the first and second widths.
 8. The method of claim 1, further comprising:analyzing the feature signal to define a closure region; and identifying the peaks and valleys in the feature signal that correspond to resolved shapes and spaces as the peaks and valleys outside of the closure region.
 9. The method of claim 1 wherein receiving the output signal includes producing a feature signal that identifies all of the shapes and spaces in the machine-readable symbol.
 10. A method for decoding a machine-readable symbol representing encoded information and formed as a relief pattern, the machine-readable symbol including a plurality of relatively spaced shapes with spaces between the shapes, wherein the shapes or spaces have at least a narrow and a wide size, the shapes differing in height from the spaces, the method comprising:producing an output signal based on light reflected from the machine-readable symbol; determining centers of at least some of the shapes and spaces in the machine-readable symbol based on the produced output signal; and producing a signal indicative of the information encoded in the machine-readable symbol as the relief pattern based on the determined centers of the shapes and spaces.
 11. The method of claim 10, further comprising:defining at least one threshold and identifying the peaks or valleys in the output signal that extend beyond the threshold as resolved shapes and spaces.
 12. The method of claim 10, further comprising:determining a slope for peaks and valleys in the output signal; and determining which of the shapes and spaces are resolved based on the determined slopes.
 13. The method of claim 10, further comprising measuring a distance with respect to each of the peaks and valleys in the output signal.
 14. The method of claim 10 wherein determining centers includes:measuring distances between the centers of peaks and valleys in the output signal.
 15. The method of claim 10, further comprising determining a width of the shapes and spaces having the narrow size based on the output signal.
 16. The method of claim 10 wherein the shapes and spaces of the machine-readable symbol have the narrow and wide size.
 17. The method of claim 10, further comprising:analyzing the output signal to define a closure region; and identifying peaks and valleys in the output signal that correspond to resolved shapes and spaces as the peaks and valleys outside of the closure region.
 18. The method of claim 10 wherein producing the output signal includes producing an output signal that identifies all of the shapes and spaces in the machine-readable symbol.
 19. The method of decoding a profile produced from a machine-readable symbol formed as a relief pattern and that represents encoded information, the symbol including a plurality of relatively spaced two-dimensional geometric shapes, the shapes or spaces between the shapes having at least first and second sizes in at least one dimension, the second size being greater than the first size, the shapes differing in height from the spaces, the method comprising:determining which of the shapes and spaces are resolved by identifying a plurality of portions in a profile that correspond to the resolved shapes and spaces; identifying centers of the resolved shapes and spaces; and determining the information encoded in the symbol as the relief pattern based on the identified centers of the resolved shapes and spaces.
 20. The method of claim 19, further comprising:defining at least one threshold and identifying the peaks or valleys that extend beyond the threshold as the resolved shapes and spaces.
 21. The method of claim 19, further comprising:determining a slope for peaks and valleys produced from the shapes and spaces; and determining which of the shapes and spaces are resolved based on the determined slopes.
 22. The method of claim 19, further comprising measuring a distance with respect to peaks and valleys in the plurality of portions.
 23. The method of claim 19 wherein identifying a center includes:measuring distances between the centers of the peaks and valleys.
 24. The method of claim 19, further comprising determining a size of the plurality of portions having the first size based on the profile.
 25. The method of claim 19 wherein the shapes and spaces of the machine-readable symbol have the first and second size.
 26. The method of claim 19, further comprising:analyzing the profile to define a closure region; and identifying peaks and valleys in the profile that correspond to resolved shapes and spaces as the peaks and valleys outside of the closure region.
 27. The method of claim 19 wherein determining which of the shapes and spaces are resolved includes producing a feature signal that identifies all of the shapes and spaces in the machine-readable symbol.
 28. An apparatus for decoding a machine-readable symbol representing encoded information and formed as a relief pattern, the machine-readable symbol including a plurality of relatively spaced two-dimensional shapes, the shapes or spaces between the shapes having at least first and second widths in at least one dimension, the second width being greater than the first width, the shapes differing in height from the spaces, the apparatus comprising:a sensor that senses the machine-readable symbol and produces an output signal therefrom that represents the shapes and spaces comprising the symbol; a receiver that receives the output signal and produces a shape signal indicative of at least some of the shapes or spaces; and a processor coupled to the receiver and processing the shape signal to produce a signal indicative of the information encoded in the symbol, the processor (i) identifying centers of the shapes and spaces in the shape signal, and (ii) producing a signal indicative of the information encoded in the symbol as the relief pattern based on the identified centers of the shapes and spaces.
 29. The apparatus of claim 28 wherein the processor defines a threshold with respect to the shape signal and identifies the shapes and spaces in the feature signal that each correspond to a resolved shape or space as portions that extend beyond the threshold.
 30. The apparatus of claim 28 wherein the processor measures distances between each of the shapes and spaces in the shape signal.
 31. The apparatus of claim 28 wherein the processor measures distances between the identified centers of the shapes and spaces.
 32. The apparatus of claim 28 wherein the processor determines a width of the shapes and spaces having a first width based on the shape signal.
 33. The apparatus of claim 28 wherein the sensor produces an output signal therefrom that represents the shapes and spaces comprising the symbol, wherein the symbol comprises shapes and spaces having the first and second widths.
 34. The apparatus of claim 28 wherein the processor determines which of the shapes and spaces are resolved by defining a closure region with respect to the shape signal and identifies a plurality of portions in the shape signal that are outside of the closure region as the resolved shapes and spaces.
 35. The apparatus of claim 28 wherein the processor defines a threshold with respect to the shape signal and measures a width for each of the shapes and spaces at the threshold.
 36. The apparatus of claim 28 wherein the receiver produces the shape signal indicative of all of the shapes and spaces.
 37. An apparatus for decoding a machine-readable symbol representing encoded information and being formed as a relief pattern, the machine-readable symbol including a plurality of relatively spaced two-dimensional shapes, the geometric shapes or spaces between the shapes having at least first and second widths in at least one dimension, the second width being greater than the first width, and the shapes differing in height from the spaces, the apparatus comprising:a sensor that receives light that is reflected from the machine-readable symbol and produces an output signal therefrom that represents the heights of the shapes and spaces comprising the symbol; a receiver that receives the output signal and produces a shape signal indicative of at least some of the shapes or spaces; a measuring circuit that generates a centers signal indicating centers of the shapes and spaces in the shape signal; and a decoding circuit that produces a signal indicative of the information encoded in the symbol as the relief pattern based on the centers signal.
 38. The apparatus of claim 37, farther comprising a slope detection circuit that generates a slope signal for each of the plurality of portions in the shape signal, the slope signal indicating which of the shapes and spaces are resolved.
 39. The apparatus of claim 37, further comprising:a detection circuit that determines which of the shapes and spaces are resolved by identifying a plurality of portions in the shape signal that each correspond to one of the resolved shapes and spaces.
 40. The apparatus of claim 37 wherein the decoding circuit is a microprocessor.
 41. The apparatus of claim 37 wherein the sensor produces the output signal that represents the heights of the shapes and spaces comprising the symbol, and wherein the symbol comprises shapes and spaces having the first and second widths.
 42. The apparatus of claim 37 wherein the receiver produces the shape signal indicative of all of the shapes and spaces. 